package com.ubireality.service.bizlogic;

import javax.inject.Inject;
import javax.transaction.Transactional;

import org.apache.log4j.Logger;

import com.ubireality.module.player.User;
import com.ubireality.service.bizlogic.dao.UserDAO;
@Transactional
public class ServletControl {
	@Inject
	private Logger logger;
	@Inject
	UserDAO dao;
	private User user;

	public void doit() {
		user = new User();
		dao.save(user);
		user.setDeviceId("id test");
		user.setName("name");
		logger.debug("servlet save done: " + user);
	}

}
